@import "@/assets/styles/index";

.loginBox {
  height: inherit;
  background-image: url("../../assets/images/login.png");
  background-size: cover;
  overflow-y: auto;
  @include scrollBar();

  .content {
    height: 100%;
    min-height: 768px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;

    .formCard {
      display: flex;
      height: 560px;
      background: #ffffff;
      box-shadow: 2px 3px 16px 3px rgba(0, 0, 0, 0.18);
      border-radius: 8px;

      .left {
        position: relative;

        .img {
          width: 440px;
          height: 100%;
        }
      }

      .login-form {
        width: 560px;
        height: 100%;
        background: #ffffff;
        padding: 92px 120px 0;
        box-sizing: border-box;
        text-align: center;

        & > .head-Logo {
          width: 197px;
          height: 63px;
        }

        .title {
          font-size: 16px;
          font-weight: 400;
          color: #0d0f54 !important;
          margin-top: 10px;
          margin-bottom: 20px;
          letter-spacing: 1.06px;
        }

        .item {
          display: flex;
          flex-direction: column;
          justify-content: center;
          align-items: center;

          .ant-form-item {
            width: 320px;
            height: 34px;
            margin-bottom: 16px;
            text-align: center;

            .ant-form-item-control {
              height: 34px;

              .ant-form-item-control-input-content {
                width: 100%;
                height: 34px;
                align-items: center;
                font-size: 14px;
                background: #edf0f6 !important;
                border-radius: 4px;

                .login-form-input {
                  height: 34px !important;
                  line-height: 1.5715;
                  padding: 5px 16px 5px 46px;
                  border: 1px solid #edf0f6;
                  background: #edf0f6 !important;

                  &:hover {
                    border: 1px solid #779eea !important;
                  }

                  &:focus {
                    border: 1px solid #779eea !important;
                    box-shadow: 0 0 0 2px rgba(119, 158, 234, 0.35) !important;
                  }
                }
              }
            }
          }

          .imgBox {
            width: 100%;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;

            .ant-form-item {
              width: 150px;
              margin: 0 20px 0 0;

            }
          }
        }

        .btnBox {
          margin-bottom: 12px !important;

          .el-button {
            width: 100%;
            height: 32px;
            font-size: 16px;
            letter-spacing: 0.5px;
            line-height: 32px;
            min-width: 80px;
            box-shadow: none !important;
            background: $primary;
            border-color: $primary;
            padding: 0;

            span {
              font-size: 14px;
              font-weight: 400;
              color: #ffffff;
            }
          }
        }

        .el-button--primary:active {
          color: #fff;
          border: 1px solid #003796;
          background: #003796 !important;
        }

        .el-button--primary:hover,
        .el-button--primary:focus {
          color: #fff;
          border: 1px solid #3a8ff0;
          background: #3a8ff0 !important;
        }

        .checkBox {
          display: inline-block;
          width: 100%;
          height: auto;
          text-align: left;
          margin-bottom: 16px;

          .el-checkbox__label {
            font-size: 14px;
            font-weight: 400;
            color: rgba(0, 0, 0, 0.85);
          }
        }

        .errorBox {
          width: 100%;
          text-align: left;
          color: #f5222d;
          font-size: 12px;
        }
      }
    }

  }
}

.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}


.login-tip {
  font-size: 13px;
  text-align: center;
  color: #bfbfbf;
}

.login-code {
  width: 33%;
  height: 38px;
  float: right;

  img {
    cursor: pointer;
    vertical-align: middle;
  }
}

.el-login-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  color: #555555;
  margin-bottom: 23px;

  & > * {
    vertical-align: middle;
  }

  span {
    margin-right: 10px;
  }

  img {
    width: 77px;
    height: 16px;
  }
}

.login-code-img {
  height: 38px;
}